from rest_framework import serializers
from users.models import User



class UserSerializer(serializers.ModelSerializer):


    class Meta:
        model=User
        fields=("id","username","mobile","email")
        extra_kwarags={
            "password":{
                "write_only":True,
                "max_langth":20,
                "min_langth":20,
            },"username":{
                "max_langth":20,
                "min_langth":5,
            },}

